Organization: c.2010 Brian Schenkenberger. Prior employers of copyright holder and their agents must first obtain written permission to copy this posting.
Lines: 31
NNTP-Posting-Host: 24.187.213.26
X-Complaints-To: abuse@cv.net
Xref: panix comp.protocols.kermit.misc:15929
In article <35c371b6-5d75-40c2-89a3-00b977ee9b88@g28g2000yqh.googlegroups.com>, Steven Schweda <sms.antinode@gmail.com> writes:
>Frank da Cruz wrote:
>
>> : You working on that 64-bit math package for 32-bit systems?
>> :
>> I did it already for Unix. I just use off_t instead of int.
>> If a 32-bit system has off_t defined as a 64-bit signed int,
>> poof, you have 64-bit arithmetic.
>
> Sadly, on VAX, off_t is 32 bits, and I'm unaware of any
>64-bit integer type. Normally I wouldn't care, but someone
>recently reminded me that Kermit on VMS doesn't use the C RTL
>for file I/O, which did suggest that there might be hope for
>proper large-file behavior (even) on VAX. However, if all the
>size/offset code is written assuming that off_t will do the
>job, then there's probably little hope of finding a practical
>way to make it work on VAX.
64 bit integer math on VAX? Simple! VAX has instructions to implement
64 bit and larger datum. ADDL/ADWC, SUBL/SBWC, EMUL, EMOD, EDIV and a
number of other bit manipulation instructions with virtually no limits
as to where the fields in the target datum begin or end.
What 64 bit math operations are needed? Post them here.
--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG